//
//  BirthdayItemCell.m
//  Birthday Reminder
//
//  Created by Andrei Marcu on 10/23/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "BirthdayItemCell.h"


@implementation BirthdayItemCell
@synthesize avatarImageView;
@synthesize nameLabel;
@synthesize birthdayLabel;
@synthesize ageLabel;
@synthesize remainingTimeLabel;

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setupCell:(BirthdayItem *)item {
    self.nameLabel.text = item.name;
    self.birthdayLabel.text = item.birthday;
    self.ageLabel.text = item.age;
    self.remainingTimeLabel.text = item.remainingDaysUntilBirthday;
    self.avatarImageView.image = item.image;
}

- (void)dealloc
{
    [avatarImageView release];
    [nameLabel release];
    [birthdayLabel release];
    [ageLabel release];
    [remainingTimeLabel release];
    [super dealloc];
}

@end
